{include file="buyer.header.html"}
<div class="content f-cb">
  {include file=path.html}
  {include file=member.menu.buyer.html}
<div class="con-r-global">
                    <!--{if $showProgress || $order.evaluation_status eq 1}-->
                        <div class="{if $order.evaluation_status eq 1}order-detail-progress05{else}order-detail-progress0{$progressId}{/if}"></div>
			<table width="100%" class="return-table-success">
				<tr>
					<td width="200">{if $order.add_time}{$order.add_time|date:Y-m-d H:i:s}{else}&nbsp;{/if}</td>
					<td width="250">{if $order.pay_time}{$order.pay_time|date:Y-m-d H:i:s}{else}&nbsp;{/if}</td>
					<td width="220">{if $order.ship_time}{$order.ship_time|date:Y-m-d H:i:s}{else}&nbsp;{/if}</td>
					<td width="220">{if $order.finished_time}{$order.finished_time|date:Y-m-d H:i:s}{else}&nbsp;{/if}</td>
					<td width="146">{if $order.evaluation_time}{$order.evaluation_time|date:Y-m-d H:i:s}{else}&nbsp;{/if}</td>
				</tr>
			</table>
                    <!--{/if}-->
			<div class="return-div-success">
                        <dl class="status">
                            <!--{if $order.status eq 11}-->
                                <dt><h4>状态：订单已提交给卖家，等您付款</h4></dt>
                                <dd>
                                    <p>
                                    您还剩余
                                    <span class="time">
                                    <i id="day_show"></i>
                                    <i id="hour_show"></i>
                                    <i id="minute_show"></i>
                                    <i id="second_show"></i>
                                    </span>完成本次交易的付款，逾期未付款，订单将自动取消。
                                    </p>
                                    <p>
                                        <a href="{carturl app=cashier&order_id=$order.order_id}" target="_blank" class="subbtnhs mt10">马上付款</a>
                                        <a href="javascript:void(0);" ectype="dialog" dialog_width="400" dialog_title="{$lang.cancel_order}" dialog_id="buyer_order_cancel_order" uri="index.php?app=buyer_order&amp;act=cancel_order&order_id={$order.order_id}&ajax" class="subbtnhs mt10 ml10">取消订单</a>
                                    </p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.status eq 20}-->
                                <dt><h4>状态：订单已付款，等待卖家发货</h4></dt>
                                <dd>
                                        <p>1，你可以通过网站或QQ联系卖家发货。卖家发货前，您支付的款项将不会打给卖家。</p>
                                        <p>2，付款24小时后如果卖家还未发货，您可以联系万菱客服。</p>
                                        <p>
                                                <!--<a href="" class="subbtnhs mt10">提醒卖家发货</a>-->
                                                <a href="{url app=buyer_returns&order_sn=$order.order_sn}" target="_blank" class="subbtnhs mt10 ml10">申请退款</a>
                                        </p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.status eq 30}-->
                                <dt><h4>状态：卖家已发货，等您确认收货</h4></dt>
                                <dd>
                                    <p>1，物流信息</p>
                                    <p class="p1">物流公司：{$order.orderextm_info.shipping_name|escape}</p>
                                    <p class="p1">运单号码：{$order.invoice_no|escape}</p>
                                    <p>
                                    2，您还剩余
                                    <span class="time">
                                    <i id="day_show"></i>
                                    <i id="hour_show"></i>
                                    <i id="minute_show"></i>
                                    <i id="second_show"></i>
                                    </span>确认收货。如果您在限期内没有“确认收货”或“申请退换货”，本次交易会自动结束，万菱将会打款给卖家。
                                    </p>
                                    <p>3，如果您已经收到货，且对商品满意，您可以确认收货打款给卖家。</p>
                                    <p>4，如果还未收到货，请注意自动打款时间，您可以申请退款/退货。</p>
                                    <p>
                                            <a href="javascript:void(0);" class="subbtnhs mt10" id="confirm_btn" ectype="dialog" dialog_id="buyer_order_confirm_order" dialog_width="400" dialog_title="{$lang.confirm_order}" uri="index.php?app=buyer_order&amp;act=confirm_order&order_id={$order.order_id}&ajax" >确认收货</a>
                                            <a href="{url app=buyer_returns&order_sn=$order.order_sn}" target="_blank" class="subbtnhs mt10 ml10">申请退款/退货</a>
                                    </p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.status eq 40 && $order.evaluation_status eq 0}-->
                                <dt><h4>状态：交易成功</h4></dt>
                                <dd>
                                        <p>如果没有收到货，或收到货后出现问题，您可以联系万菱客服或联系卖家。  </p>
                                        <p>
                                            <a href="{url app=buyer_order&act=evaluate&order_id=$order.order_id}" target="_blank" class="subbtnhs mt10">评价卖家</a>
                                        </p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.status eq 0}-->
                                <dt><h4>状态：订单取消</h4></dt>
                                <dd>
                                        <p>原因：超时关闭/买家不想买了。</p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.status eq 5}-->
                                <dt><h4>状态：订单关闭</h4></dt>
                                <dd>
                                        <p>原因：买家退款成功，订单关闭。</p>
                                </dd>
                            <!--{/if}-->
                            <!--{if $order.evaluation_status}-->
                                <dt><h4>状态：已评价</h4></dt>
                            <!--{/if}-->
                        </dl>
			<div>
				<dl class="order-detail-info">
					<dt class="f-cb">
						<h4>订单详情</h4>
						<span>订单号：{$order.order_sn}&nbsp;&nbsp;&nbsp;</span>
					</dt>
                                        <dd class="f-cb">
                                                <ul class="f-fl" style="width:475px;">
                                                        <li class="detail-info-t"><p>买家信息</p></li>
                                                        <li><p>收货人：{$order.orderextm_info.consignee|escape}</p></li>
                                                        <li><p class="pr30">收货地址：{$order.orderextm_info.region_name|escape}&nbsp;&nbsp;&nbsp;{$order.orderextm_info.address|escape}</p></li>
                                                        <li><p class="pr30">邮政编码：{$order.orderextm_info.zipcode|escape}</p></li>
                                                        <li><p>联系电话：{if $order.orderextm_info.phone_tel}{$order.orderextm_info.phone_tel|escape}&nbsp;&nbsp;&nbsp;{/if}{$order.orderextm_info.phone_mob|escape}</p></li>
                                                        <li><p>买家留言：{if $order.postscript}{$order.postscript|escape}{else}暂无留言{/if}</p></li>
                                                        <li><p>发票抬头：{if $order.orderextm_info.inv_content}{$order.orderextm_info.inv_content|escape}{else}不需发票{/if}</p></li>
                                                </ul>
                                                <ul class="f-fl" style="width:475px;">
                                                        <li class="detail-info-t"><p>卖家信息</p></li>
                                                        <li><p>店铺名称：{$order.store_name|escape}</p></li>
                                                        <li><p>卖家姓名：{$order.owner_name|escape}</p></li>
                                                        <li><p>发货地址：{$order.seller_address_info.region_name|escape|default:-}&nbsp;&nbsp;&nbsp;{$order.seller_address_info.address|escape|default:-}</p></li>
                                                        <li><p>联系电话：{if $order.seller_address_info.phone_tel}{$order.seller_address_info.phone_tel|escape}&nbsp;&nbsp;&nbsp;{/if}{$order.seller_address_info.phone_mob|escape}</p></li>
                                                </ul>
                                        </dd>
                                        <!--{if $order.ship_time}-->
                                        <dd class="dd1">
                                                <table>
                                                        <tr>
                                                                <td width="70" valign="top">
                                                                        <p>物流公司：</p>
                                                                </td>
                                                                <td>
                                                                        <p>{$order.orderextm_info.shipping_name|escape}</p>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td width="70" valign="top">
                                                                        <p>运单号码：</p>
                                                                </td>
                                                                <td>
                                                                        <p>{$order.invoice_no|escape}</p>
                                                                </td>
                                                        </tr>
                                                </table>
                                        </dd>
                                        <!--{/if}-->
					<dt>
						<table width="100%" class="order-detail-tbl">
							<tbody><tr>
                                                                <th colspan="2">商品信息</th>
								<th class="detail-thc">商品规格</th>
								<th class="detail-thc">单价（元）</th>
								<th class="detail-thc">数量</th>
								<th class="detail-thc">商品总价（元）</th>
							</tr>
							<!--{foreach from=$goods_list item=goods}-->
							<tr>
								<td width="120" valign="top">
									<div class="goods-show-img">
										<img height="100" alt="" src="{$goods.goods_image}"></div>
								</td>
								<td width="180" valign="top">
									<p>
										<a class="linkbtn" href="{jsurl app=goods&id=$goods.goods_id}">{$goods.goods_name|escape}</a>
									</p>
									<p class="detial-pz">货号：{$goods.sku|escape}</p>
								</td>
                                                                <td width="200" valign="top" align="center">
									<ul>
										<li>{$goods.specification}</li>
									</ul>
								</td>
								<td width="100" valign="top" align="center">
									<p>{$goods.price|price}</p>
								</td>
								<td width="80" valign="top" align="center">{$goods.quantity}</td>
								<td valign="top" align="center">{$goods.total_money|price}</td>
							</tr>
							<!--{/foreach}-->
							
						</tbody></table>
					</dt>
					<dd class="order-detail-dtdx"></dd>
					<dd class="order-detail-sub f-cb">
						<ul>
							<li>运费：{if $order.orderextm_info.shipping_fee}{$order.orderextm_info.shipping_fee}{else}0{/if} 元</li>
                                                        <!--{if $order.orderextm_info.free_shipping gt 0}-->
                                                        <li>免邮：{$order.orderextm_info.free_shipping}元</li>
                                                        <!--{/if}-->
                                                        <!--{if $order.discount gt 0}-->
                                                        <li>优惠金额：{$order.discount}元</li>
                                                        <!--{/if}-->
							<li>
								(商品总价 
                                                                + 运费
                                                                {if $order.orderextm_info.free_shipping gt 0}– 免邮{/if}
                                                                {if $order.discount gt 0}– 优惠金额{/if}
                                                                ) = 实付总额：
								<em>{$order.order_amount}</em>
								元
							</li>
						</ul>
					</dd>
				</dl>
				<div class="order-detail-dbtp"></div>
			</div>
                            <iframe name="seller_order" style="display:none;"></iframe>
                        </div>
		</div>
</div>
<iframe id='iframe_post' name="iframe_post" src="about:blank" frameborder="0" width="0" height="0"></iframe>
{include file="footer.html"}

<script>
    $(function() {
        var totalSeconds = parseInt({$left_time}); //倒计时总秒数量
        wl.wlTimer({
                'intDiff': totalSeconds,
                'daySelector': '#day_show',
                'hourSelector': '#hour_show',
                'minuteSelector': '#minute_show',
                'secondSelector': '#second_show',
                'end':function(){
                        //结束后
                }
        });
    });
</script>
{if $pop_dialog}
<script>
    $(function() {
        $("#confirm_btn").click();
    });
</script>
{/if}